/************ Projects Css ************/

.project {
    padding: 80px 0;
    position: relative;
    background-color: black;
}

.project h2 {
	font-size: 45px;
	font-weight: 700;
  text-align: center;
}

.project p {
    color: #B8B8B8;
    font-size: 18px;
    letter-spacing: 0.8px;
    line-height: 1.5em;
    margin: 14px auto 30px auto;
    text-align: center;
    width: 56%;
  }
/* nav tab 切换栏的样式 */
  .project .nav.nav-pills {
    width: 72%;
    margin: 0 auto;
    border-radius: 50px;
    background-color: rgb(255 255 255 / 10%);
    overflow: hidden;
  }
  /* 切换栏 1/3 */
  .project .nav.nav-pills .nav-item {
    width: 33.33333%;
  }
  /* 切换栏内部单个样式 */
  .project .nav.nav-pills .nav-link {
    background-color: transparent;
    border-radius: 0;
    padding: 17px 0;
    color: #fff;
    width: 100%;
    font-size: 17px;
    letter-spacing: 0.8px;
    font-weight: 500;
    position: relative;
    transition: 0.3s ease-in-out;
    text-align: center;
    z-index: 0;
  }
  /* 渐变交互样式 */
  .project .nav.nav-pills .nav-link::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90.21deg, #AA367C -5.91%, #4A2FBD 111.58%);

    top: 0;
    left: 0;
    z-index: -1;
    /* transition: 0.3s ease-in-out; */
    transition: all 0.6s ease-in-out;
    transform: scaleX(0);
}
.project .nav.nav-pills .nav-link.active::before {
    /* width: 100% !important; */
    transform: scaleX(1) !important;

}

/* 内容框 */
.proj-imgbx {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 24px;
  }
  .proj-imgbx::before {
    content: "";
    background: linear-gradient(90.21deg, #AA367C -5.91%, #4A2FBD 111.58%);
    opacity: 0.85;
    position: absolute;
    width: 100%;
    height: 0;
    transition: 0.4s ease-in-out;
  }
  /* 从上而下的遮罩渐变层 */
  .proj-imgbx:hover::before {
    height: 100%;
  }

  .proj-imgbx img {
    width: 415px;
    height: 305px;;
  }
  /* hover到图片的时候文字显示， 操控位置和过渡和opacity */
  .proj-txtx {
    position: absolute;
    text-align: center;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s ease-in-out;
    opacity: 0;
    width: 100%;
  }
  /* 显示文字 */
  .proj-imgbx:hover .proj-txtx {
    top: 50%;
    opacity: 1;
  }
  .proj-txtx h4 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1.1em;
  }
  .proj-txtx span {
    font-style: italic;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.8px;
  }
/* 背景图片 */
.background-image-right {
    top: 20%;
    position: absolute;
    bottom: 0;
    width: 35%;
    right: 0;
    z-index: -4;
  }
